package com.qf.fc.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.Data;
import lombok.NoArgsConstructor;
import java.io.Serializable;
import java.util.Date;

import org.springframework.format.annotation.DateTimeFormat;

/**
 * 用户详情表(UserDetail)表实体类
 *
 * @author makejava
 * @since 2024-09-16 22:56:04
 */
@Data  //简化类自动生成Get和Set和toString
@TableName("t_user_detail")  //标记对应的表名
@NoArgsConstructor
public class UserDetail extends Model<UserDetail> {
    //序号，主键
    @TableId(type = IdType.AUTO)  //主键设置自增方式
    private Integer id;
    //用户id
    private Integer uid;
    //昵称
    private String nickname;
    //图像
    private String imageurl;
    //介绍
    private String info;
    //性别
    private String sex;
    //生日
    private Date birthday;
    //创建时间
    private Date createTime;
    //更新时间
    private Date updateTime;

    public UserDetail(Integer uid) {
        this.uid = uid;
        this.createTime = new Date();
        this.updateTime = new Date();
    }
}

